home *** CD-ROM | disk | FTP | other *** search
- Short: New interpreter
- Author: jay-t@gmx.net
- Uploader: jay-t@gmx.net
- Version: 0.30
- Type: dev/lang
-
- Required: AmigaOS 2.0 (maybe 1.3 works too)
-
- Long:
-
- Nano is a new interpreter with syntax near to BASIC and C.
- The main features are:
-
- - types: short int, long int, double and string.
- - arrays
- - advanced array handling
- - subroutines
- - ANSI output functions: text styles, text locating, cursor moving...
- - virtual memory
-
- Note: there's no file in-/output.
-
-
- This is the famous "Hello world!" example:
-
- print "Hello world!", /n;
-
- What's the "/n" doing? It prints a linefeed.
- To start this example, open a Shell and type:
-
- cd nanoprog:
- nano hello.n
-
-
- Let's say we want to print it five times. Then we need a loop:
-
- ---- cut --------------------------------------------
-
- // prints "Hello world!" five times
-
- int i; declare i
-
- i = 1;
- while i <= 5;
- print "Hello world!", /n;
- inc i; replaces "i = i + 1;"
- wend;
-
- ---- cut end ----------------------------------------
-
- This example shows the two ways to use comments. Everything without
- a following semicolon is ignored. A whole line starts with "//".
-
- Now lets get some input:
-
- ---- cut -----------------------------
-
- string name[31];
-
- input "Your first name? " name;
- print /n, "Hello ", name, "!", /n;
-
- ---- cut end -------------------------
-
- -------------------------------------------------------------------------
- LhA Evaluation V1.38 - Copyright (c) 1991,92 Stefan Boberg.
- All rights reserved. Not for commercial use.
-
- Listing of archive 'nano.lha':
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 628 271 56.8% 06-Aug-02 08:07:20 nano.info
- 628 265 57.8% 06-Aug-02 08:07:20 +include.info
- 14 14 0.0% 05-Jan-02 08:29:42 +cl.dec
- 49 49 0.0% 05-Jan-02 08:29:22 +cl.sub
- 79 74 6.3% 06-Aug-02 08:12:18 +config.n
- 62 61 1.6% 24-Jul-02 09:38:12 +double_pre.dec
- 563 251 55.4% 24-Jul-02 16:30:14 +double_pre.sub
- 51 51 0.0% 03-Jan-02 18:16:34 +get_time.dec
- 717 252 64.8% 02-Feb-02 00:31:06 +get_time.sub
- 725 332 54.2% 10-Jun-02 01:51:30 +math.h
- 44 44 0.0% 05-Jan-02 08:45:42 +prpos.dec
- 82 76 7.3% 05-Jan-02 08:46:02 +prpos.sub
- 80 72 10.0% 25-May-02 17:18:58 +split_date.dec
- 745 242 67.5% 25-May-02 17:18:04 +split_date.sub
- 59 58 1.6% 04-Feb-02 23:40:00 +strleft.dec
- 234 136 41.8% 04-Feb-02 23:39:30 +strleft.sub
- 60 59 1.6% 04-Feb-02 23:29:46 +strright.dec
- 276 149 46.0% 04-Feb-02 23:36:38 +strright.sub
- 120 93 22.5% 23-Jul-02 16:32:40 +nano-Assigns
- 242 140 42.1% 06-Aug-02 08:07:20 +nano-Assigns.info
- 19872 6682 66.3% 26-Jul-02 08:32:22 +nano.guide
- 436 210 51.8% 06-Aug-02 08:07:20 +nano.guide.info
- 181428 57898 68.0% 01-Aug-02 06:01:48 +nano_68000
- 164904 52067 68.4% 30-Jul-02 06:58:18 +nano_68020
- 628 254 59.5% 06-Aug-02 08:07:20 +prog.info
- 266 128 51.8% 12-Apr-02 06:46:06 +ansi.n
- 1019 361 64.5% 23-Jul-02 16:54:46 +benchm.n
- 6346 1656 73.9% 25-May-02 17:28:24 +calendar.n
- 277 173 37.5% 23-Jul-02 16:00:56 +circle.n
- 795 374 52.9% 24-Jul-02 08:39:36 +circle_lang.n
- 970 310 68.0% 22-May-02 06:29:00 +clock.n
- 680 289 57.5% 25-May-02 15:35:02 +constyle.n
- 3923 968 75.3% 25-May-02 17:28:14 +date.n
- 5451 1317 75.8% 13-Jun-02 08:03:18 +date_data.n
- 26 26 0.0% 06-Aug-02 08:17:20 +hello.n
- 219 144 34.2% 05-Apr-02 06:59:00 +lab_demo.n
- 2666 874 67.2% 06-Jun-02 00:10:22 +primenum.n
- -------- ------- ----- --------- --------
- 395364 126420 68.0% 06-Aug-102 08:38:56 37 files
-
- Operation successful.
-